package com.rd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rd.pojo.Department;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qiufenfen
 * @since 2023-10-28
 */
public interface DepartmentMapper extends BaseMapper<Department> {
    /**
     获取所有部门
     */
    List<Department> getAllDepartments(Integer parentId);

    /**
     * 添加部门
     */
    void addDept(Department dep);

    /**
     * 删除部门
     */
    void deleteDept(Department dep);
}
